def length(paswwword):
    if len(password) > 8:
        return 1
    else:
        return 0
def integrity(password):
    a = b = c = 0
    for i in password:
        if i.islower():
            a = 1
        if i.isupper():
            b = 1
        if i.isdigit():
            c = 1
    if a+b+c > 1:
        return 1
    else:
        return 0
def repetition(password):
    for i in range(3):
        for j in range(len(password) - i):
            if password.count(password[j:j + i]) >= 2:
                return 0
            else:
                return 1

password = input("please input your password")
a = length(password) + integrity(password) + repetition(password) + 2
print(repetition(password))
print("your password level is %d",a)
if integrity(password) == 0:
    print("your password character types is too few")
if length(password) == 0:
    print("your password is too short")
if repetition(password) == 0:
    print("your password have too many duplicates")